home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d8
/
tadex10.arc
/
EXECTIME.SLT
< prev
next >
Wrap
Text File
|
1989-04-23
|
1KB
|
52 lines
// EXECTIME.SLT
// Version 1.00
//
// By John Abatte
// April 22, 1989
//
// This script provides a time delay for dialing EXEC-PC.
// The only item you have to modify is to put your directory entry number
// for EXEC-PC where indicated below.
str ctime[8], // storage for current time string
dtime[8], // storage for delay time string
endt[3] = ":00",
dn[4] = "45"; // YOUR directory entry number for EXEC-PC
main()
{
int tm;
_time_format = 1;
tm = curtime();
time(tm, ctime);
clear_scr();
box(22,6,57,16,3,0,48);
box(23,7,56,15,0,0,17);
pstraxy("Current Time is ",28,8,31);
pstraxy(ctime,44,8,30);
pstraxy("Enter the Time to Dial EXEC-PC",25,10,31);
pstraxy("in the Format `HH:MM' Based on",25,11,31);
pstraxy("24 Hour Clock.",33,12,31);
pstraxy("[ ]",36,14,62);
gotoxy(37,14);
gets(dtime, 5);
strcat(dtime, endt);
clear_scr();
box(24,9,55,15,3,0,48);
box(25,10,54,14,0,0,17);
pstraxy("Delayed Time is ",28,11,31);
pstraxy(dtime,44,11,30);
pstraxy("Current Time is ",28,13,31);
while ((strcmpi(ctime, dtime)) != 0)
{
tm = curtime();
time(tm, ctime);
pstraxy(ctime,44,13,30);
delay_scr(10);
}
dial(dn,0,0);
}